Skip to content

Add code generator app#318

Merged
wu-clan merged 59 commits intofastapi-practices:masterfrom
wu-clan:add-generator-app
Jul 10, 2024
Merged

Add code generator app#318
wu-clan merged 59 commits intofastapi-practices:masterfrom
wu-clan:add-generator-app

Conversation

@wu-clan
Copy link
Member

@wu-clan wu-clan commented Apr 30, 2024

WIP.

@wu-clan wu-clan mentioned this pull request May 13, 2024
10 tasks
@wu-clan wu-clan mentioned this pull request Jun 6, 2024
@jundaychan
Copy link

hi,大佬,代码生成进度如何

@wu-clan wu-clan changed the title [WIP] Add code generator app Add code generator app Jul 2, 2024
@wu-clan wu-clan marked this pull request as ready for review July 2, 2024 16:17
@wu-clan wu-clan requested a review from downdawn July 2, 2024 16:17
@wu-clan wu-clan linked an issue Jul 3, 2024 that may be closed by this pull request
@wu-clan wu-clan merged commit f9ec9d5 into fastapi-practices:master Jul 10, 2024
@wu-clan wu-clan deleted the add-generator-app branch July 10, 2024 04:12
@wu-clan wu-clan removed the request for review from downdawn July 10, 2024 04:12
chuxijin pushed a commit to chuxijin/fba that referenced this pull request Feb 8, 2026
* Add code generator app

* Define the generator interfaces

* Update the name of the template files

* update lock hash

* update route and schemas

* update gen code structure

* add some gen codes

* upgrade SQLAlchemy to release

* update template util

* Fix lint error

* Add template rendering code

* Add gen model code

* Fix gen model table

* Update business model column naming

* Update any route

* Fix api ninja args

* Update gen business model

* Fix interface services logic

* Fix template render

* Add more code template

* Add model auto gen template

* Fix model type map style

* Update schema and model templates

* Update gen_model schema

* Fix model template if

* Update have_datetime_column field from gen_model to gen_business table

* Update the name of the zip

* Update model template vars

* Add download generate code

* Add preview code encoding

* Update service code template

* fix lint

* Update github auth tag

* Update requirements

* Add code generation write

* Update generate interface and zip conf

* Optimize templates details

* Update model relation column conf

* Add import tables module

* Add get all databases interface

* Fix get tables interface

* Bump pydantic to 2.8.1

* Upgrading lint dependencies

* Add import business and model implement

* Split import database execution code

* Update text SQL execution to prevent SQL injection

* Optimize schema name generation

* clean code

* Update create tables sql scripts

* Update import sql query conditions

* Add todo comments

* Mark business creation interface

* Update features in README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

数据库models如何自动生成 加入代码生成么?

2 participants